using System.Collections.Generic;
using UnityEngine;

static class MessagePoolRegister
{
	public static void RegisteNetPools()
	{
		MessagePool.Instance.Registe(typeof(Map.LockStepCommandBean),new ProtobufMessagePool(() => new Map.LockStepCommandBean()));
		MessagePool.Instance.Registe(typeof(Map.RoomPlayerBean),new ProtobufMessagePool(() => new Map.RoomPlayerBean()));
		MessagePool.Instance.Registe(typeof(Map.RoomBrief),new ProtobufMessagePool(() => new Map.RoomBrief()));
		MessagePool.Instance.Registe(typeof(Map.ReqLoginMessage),new ProtobufMessagePool(() => new Map.ReqLoginMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResLoginMessage),new ProtobufMessagePool(() => new Map.ResLoginMessage()));
		MessagePool.Instance.Registe(typeof(Map.ReqCreateRoomMessage),new ProtobufMessagePool(() => new Map.ReqCreateRoomMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResCreateRoomMessage),new ProtobufMessagePool(() => new Map.ResCreateRoomMessage()));
		MessagePool.Instance.Registe(typeof(Map.ReqCreateRoleMessage),new ProtobufMessagePool(() => new Map.ReqCreateRoleMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResCreateRoleMessage),new ProtobufMessagePool(() => new Map.ResCreateRoleMessage()));
		MessagePool.Instance.Registe(typeof(Map.ReqJoinRoomMapMessage),new ProtobufMessagePool(() => new Map.ReqJoinRoomMapMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResJoinRoomMapMessage),new ProtobufMessagePool(() => new Map.ResJoinRoomMapMessage()));
		MessagePool.Instance.Registe(typeof(Map.ReqLeaveRoomMapMessage),new ProtobufMessagePool(() => new Map.ReqLeaveRoomMapMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResLeaveRoomMapMessage),new ProtobufMessagePool(() => new Map.ResLeaveRoomMapMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResRoomInfoMessage),new ProtobufMessagePool(() => new Map.ResRoomInfoMessage()));
		MessagePool.Instance.Registe(typeof(Map.ReqRoomBattleBeReadyMessage),new ProtobufMessagePool(() => new Map.ReqRoomBattleBeReadyMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResBattleStartMessage),new ProtobufMessagePool(() => new Map.ResBattleStartMessage()));
		MessagePool.Instance.Registe(typeof(Map.ReqLockStepCommandMessage),new ProtobufMessagePool(() => new Map.ReqLockStepCommandMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResLockStepCommandMessage),new ProtobufMessagePool(() => new Map.ResLockStepCommandMessage()));
		MessagePool.Instance.Registe(typeof(Map.ReqBattleEndMessage),new ProtobufMessagePool(() => new Map.ReqBattleEndMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResBattleEndMessage),new ProtobufMessagePool(() => new Map.ResBattleEndMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResRoomListInfoMessage),new ProtobufMessagePool(() => new Map.ResRoomListInfoMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResRoomAddMessage),new ProtobufMessagePool(() => new Map.ResRoomAddMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResRoomRemovedMessage),new ProtobufMessagePool(() => new Map.ResRoomRemovedMessage()));
		MessagePool.Instance.Registe(typeof(Map.ResRoomUpdatedMessage),new ProtobufMessagePool(() => new Map.ResRoomUpdatedMessage()));
	}
}
